package com.mypro.common.user;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.mypro.common.base.BaseService;

/** 
 * @ClassName: UserService 
 * @Description: 用户操作服务类
 * @author liuxd
 * @date 2013-7-1 上午11:14:36 
 *  
 */
@Service
public class UserService extends BaseService<User>{

	public List<User> login(String userName, String password) {
		Map values = new HashMap();
		values.put("username", userName);
		values.put("password", password);
		return dao.find("from User where username=:username and password=:password and valid=true", values);
	}
	
}
